package com.ruoyi.cases;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.ruoyi.RuoYiApplication;
import com.ruoyi.cases.domain.YltCase;
import com.ruoyi.cases.service.IYltCaseService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.List;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = RuoYiApplication.class)
public class CaseManageTes {
	@Autowired
	IYltCaseService iYltCaseService;
	@Test
	public void T1(){
		PageHelper.startPage(1, 1, 1+"");
		List<YltCase> yltCases = iYltCaseService.selectYltCaseList(null);
		long total = new PageInfo(yltCases).getTotal();
		System.out.println(yltCases);
	}
}
